package com.itheima.service;

import com.itheima.cammon.PageInof;
import com.itheima.pojo.Setmeal;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author 王同学
 */
@Transactional(rollbackFor = RuntimeException.class)
public interface SetmealService {
    boolean add(Setmeal stemeal);

    PageInof<Setmeal> page(String name, Integer page, Integer pageSize);

    boolean deleteById(String ids);

    Setmeal findById(String id);

    boolean update(Setmeal setmeal);

    boolean updatestatus(String ids,int stu);
}
